home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
003
/
books.arc
/
REGREPT.PRG
< prev
next >
Wrap
Text File
|
1985-04-17
|
1KB
|
58 lines
* regrept.prg
* Update check regster file and print it.
erase
? "Updating register file..."
* send all written, nonregistered check transactions
* from the trans file to a temp file
use trans
copy to temp for written .and. .not.;
registered .and. type = 1
repl all registered with T for written .and .not.;
registered .and. type = 1
* Update register from temp file.
use register
appe from temp
* sum checks and deposits.
sum amount for .not. deposit to expense
sum amount for deposit to income
* Ask about date range and printer.
erase
store " " to start,finish
store " " to yn,cond
@ 3,2 say "Enter starting date " get start pict "99/99/99"
@ 4,2 say "Enter ending date " get finish pict "99/99/99"
@ 6,2 say "Send to printer (Y/N) " get YN pict "!"
read
* Set printer on if requested.
if yn = "Y"
set print on
endif (yn = y)
set eject off
* Print the report using register.frm
eras
repo form register for date >= start .and.;
date <= finish
?
?
? " Balance ",income-expense
set print off
* If report not going to printer, pause.
if yn <> "Y"
?
?
? "Press any key to continue....."
wait
endif ( yn <> Y)
release income,expense,yn,start,finish
retu